LUA FLOAT
With this command, you can get a float from the LUA interface.
Global floats can be specified in a file simply by assigning a number to a named variable. e.g: percent = 0.75
After the file has been loaded by LUA, you can access this global float by using my_float#=LUA FLOAT("percent").
You should check for errors after calling this command, since a file could easily have an error, or just a typo.
In addition to that, you can get a table field that holds a float out of a global, named table from the LUA interface.
You can even use this command to get a float field out of a nested table, like: "my_grades.first_year.math", where "my_grades" is the global table name, "first_year" a table field of "my_grades", and finally "math" the float table field of "first_year".
The syntax is the following: my_grade#=LUA FLOAT("my_grades.first_year.math")
Note that in LUA numbers don't have a type, they are all treated as double. It doesn't matter if you assign an integer number (e.g. 75) to the percent variable.
SYNTAX
Return Float=LUA FLOAT(index_name as String)
RELATED INFO
LUA command menu
Index
EXAMPLE
Showcase-example 1
Showcase-example 2